package cn.glc.daily.life.model.dto.user.task;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 更新用户任务
 *
 * @author simon
 * @date 2021/5/11 17:01
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
@ApiModel(value = "更新用户任务", description = "")
public class UserTaskUpdateDto {

    @ApiModelProperty(value = "业务id")
    @NotNull(message = "业务id不能为空")
    private Long id;
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;
    @ApiModelProperty(value = "富文本内容")
    private String content;
    @ApiModelProperty(value = "推送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pushTime;

}
